using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._SuitabilityAnalysis
{
    /// <summary>
    /// <para>Add Field Based Suitability Criteria</para>
    /// <para>Adds criteria based on the numerical fields existing in the input layer.</para>
    /// <para>根据输入图层中存在的数值字段添加条件。</para>
    /// </summary>    
    [DisplayName("Add Field Based Suitability Criteria")]
    public class AddFieldBasedSuitabilityCriteria : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddFieldBasedSuitabilityCriteria()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_analysis_layer">
        /// <para>Input Suitability Analysis Layer</para>
        /// <para>The Suitability Analysis layer that will be used in the analysis.</para>
        /// <para>将在分析中使用的适宜性分析图层。</para>
        /// </param>
        /// <param name="_fields">
        /// <para>Fields</para>
        /// <para>The numeric fields from which the suitability criteria will be determined.</para>
        /// <para>用于确定适宜性条件的数值字段。</para>
        /// </param>
        public AddFieldBasedSuitabilityCriteria(object _in_analysis_layer, List<object> _fields)
        {
            this._in_analysis_layer = _in_analysis_layer;
            this._fields = _fields;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Add Field Based Suitability Criteria";

        public override string CallName => "ba.AddFieldBasedSuitabilityCriteria";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_analysis_layer, _fields, _out_analysis_layer, _out_criteria_name];

        /// <summary>
        /// <para>Input Suitability Analysis Layer</para>
        /// <para>The Suitability Analysis layer that will be used in the analysis.</para>
        /// <para>将在分析中使用的适宜性分析图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Suitability Analysis Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_analysis_layer { get; set; }


        /// <summary>
        /// <para>Fields</para>
        /// <para>The numeric fields from which the suitability criteria will be determined.</para>
        /// <para>用于确定适宜性条件的数值字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Fields")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _fields { get; set; }


        /// <summary>
        /// <para>Output Suitability Analysis Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Suitability Analysis Layer")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_analysis_layer { get; set; }


        /// <summary>
        /// <para>Output Criteria Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Criteria Name")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _out_criteria_name { get; set; }


        public AddFieldBasedSuitabilityCriteria SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}